package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Tleave;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 * 教职工离校报备 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-02
 */
public interface TleaveMapper extends BaseMapper<Tleave> {
    List<Tleave> getTleaveByTlId(@Param("id") Integer id);

    IPage<Tleave> getTealeaveByPage(Page<Tleave> page, @Param("tleave") Tleave tleave,
                                    @Param("beginDateScope") String[] beginDateScope);

    List<Tleave> getTleave(Integer id);
}
